<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
	
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
	<title>Visual Basic ReadMe</title>
</head>

<body>

<h1>Visual Studio 2010 Samples for Visual Basic 10.0</h1>
<p>Here are the Visual Basic samples that ship with Visual Studio 2010. These are a cumulative batch of programs, 
demonstrating Visual features found in VS 2010, 2008, 2005 and earlier. You can Visual Basic 10 (VS 2010) samples
in the languages section.</p>

<ul>
	<li><a href="#app">Application Samples</a></li>
	<li><a href="#data">Data Samples</a></li>
	<li><a href="#lang">Language Samples</a></li>
	<li><a href="#linq">LINQ Samples</a></li>
	<li><a href="#security">Security Samples</a></li>
	<li><a href="#server">Server Component Samples</a></li>
	<li><a href="#tablet">Tablet PC Samples</a></li>
	<li><a href="#wcf">WCF Samples</a></li>
	<li><a href="#winforms">Winform Samples</a></li>
</ul>

<p>Dig into this treasure chest of code and use the samples to explore the world of programming with Visual Basic.</p>

<h2><a name="app">Application Samples</a></h2>

<p>These samples show how to create various types of applications and use the project, user and assembly tasks. There are stored in the <a href="Application Samples">Applications Samples</a> directory.</p>
<ul>
<li><a href="Application Samples\AppEvents">AppEvents</a>: Demonstrates the application events accessed through the Project Designer</li>
<li><a href="Application Samples\ClickOnce">ClickOnce</a>: Deploys and updates an application using ClickOnce</li>
<li><a href="Application Samples\ConsoleApps">ConsoleApps</a>: Demonstrates simple input and output using the console window.</li>
<li><a href="Application Samples\Environment">Environment</a>: Demonstrates the use of several classes that provide environment information.</li>
<li><a href="Application Samples\Excel">Excel</a>: Demonstrates how to use Visual Basic to start Excel, create a workbook from a template, update cells in a worksheet that then populate graphs in the workbook, and perform other tasks</li>
<li><a href="Application Samples\Game">Game</a>: Demonstrates the My feature, object-oriented programming, and drawing. </li>
<li><a href="Application Samples\Logging">Logging</a>: Uses the My.Application.Log object to log information to files and event logs. </li>
<li><a href="Application Samples\Multithread">Multithread</a>: Shows two different ways to implement multithreaded tasks. </li>
<li><a href="Application Samples\MyResources">MyResources</a>: Demonstrates the My.Settings and My.Resources objects. </li>
<li><a href="Application Samples\PowerPoint">PowerPoint</a>: Demonstrates how to start PowerPoint, create a blank presentation, add a slide and content, print slides, save your changes, and exit PowerPoint from within a Visual Basic application.</li>
<li><a href="Application Samples\PrintformSample">PrintformSample</a>: Demonstrates use of the Print Preview Functionality.</li>
<li><a href="Application Samples\SendMail">SendMail</a>: Shows how to send email over SMTP using classes in the System.Web.Mail namespace</li>
<li><a href="Application Samples\TCPRemoting\">TCPRemoting</a>: Shows how to use the .NET Framework remoting architecture. It uses XML configuration files to specify available objects and server location information
<ul>
	<li> - <a href="Application Samples\TCPRemoting\Client">Client</a></li>
	<li> - <a href="Application Samples\TCPRemoting\RemoteHost">RemoteHost</a></li>
</ul></li>
<li><a href="Application Samples\ThreadUIUpdate">ThreadUIUpdate</a>: Shows how to update the user interface when data is supplied from a different thread.</li>
<li><a href="Application Samples\UpgradeSample\">UpgradeSample</a>: Shows an application in Visual Basic 6.0 and how that application might be upgraded to Visual Basic 2010</li>
<li><a href="Application Samples\UserInfo">UserInfo</a>: Provides an overview of the My.User object and the Login Form template. It implements a simple custom authentication</li>
</ul>

<h2><a name="data">Data Samples</a></h2>

<p>Database related samples are stored <a href="Data Samples\">here.</a></p>
<ul>
<li><a href="Data Samples\CreateDB">CreateDB</a>: Shows how to execute SQL statements from code to create a database, a table, a stored procedure, and a view</li>
<li><a href="Data Samples\CustomDataControls">CustomDataControls</a>: Demonstrates how to use your own controls with the Data Source window</li>
<li><a href="Data Samples\DataComboBox">DataComboBox</a>: Shows how to bind data to ComboBox and DataGridView controls</li>
<li><a href="Data Samples\DataSearch">DataSearch</a>: Demonstrates how to display a subset of data from within your database</li>
<li><a href="Data Samples\DataValidation">DataValidation</a>: Demonstrates the Dataset Designer and uses the PropertyChanged events to validate user input</li>
<li><a href="Data Samples\LocalData">LocalData</a>: Demonstrates the local data features of Visual Studio, including the Data Sources window, TableAdapters, and the BindingSource component. Also shows how to create data-bound forms without having to write code and how to connect to a database file</li>
<li><a href="Data Samples\ObjectBinding">ObjectBinding</a>: Demonstrates how you can bind controls to objects other than database components</li>
<li><a href="Data Samples\OCS\">OCS</a>: Demonstrates how to use Microsoft Synchronization Services for ADO.NET for two-tier download-only synchronization</li>
<li><a href="Data Samples\Serialization">Serialization</a>: Demonstrates how to serialize and deserialize an object</li>
<li><a href="Data Samples\StoredProcedures">StoredProcedures</a>: Demonstrates how to programmatically create and use stored procedures with ADO.NET and Microsoft SQL Server</li>
<li><a href="Data Samples\XML">XML</a>: Shows how to use the XmlDocument class, which exposes the XML Document Object Model, or DOM, to manipulate XML data</li>
</ul>

<h2><a name="lang">Language Samples</a></h2>

<p>These samples demonstrate various Visual Basic language features. They are stored in the <a href="Language Samples">Language Samples</a> directory.</p>

<p>Here is the list of Visual Studio 2010 samples dedicated to new features found in <strong>Visual Basic 10</strong>:</p>

<ul>
<li><a href="Language Samples\AutoImplementedPropSample">AutoImplementedPropSample</a></li>
<li><a href="Language Samples\CollectionInitializersSample">CollectionInitializersSample</a></li>
<li><a href="Language Samples\CovarianceSample">CovarianceSample</a></li>
<li><a href="Language Samples\ImplicitLCSamples">ImplicitLCSamples</a></li>
<li><a href="Language Samples\StatementLambdasSample">StatementLambdasSample</a></li>
</ul>

<p>Here is the complete list of Language Samples:</p>
<ul>
	<li><a href="Language Samples\APICalls">APICalls</a>: Demonstrates calling Win32 API functions to enumerate and control processes and windows, and to query and change system settings</li>
	<li><a href="Language Samples\Arrays">arrays</a>: Creates arrays of Integer and Object values, and sorts and searches arrays</li>
	<li><a href="Language Samples\AutoImplementedPropSample">AutoImplementedPropSample</a>: Contains two source files showing similar source code, one using auto implemented properties and the other using the existing expanded property syntax</li>
	<li><a href="Language Samples\CollectionInitializersSample">CollectionInitializersSample</a>: Shows how you can use collection initializer syntax to create arrays and collections</li>
	<li><a href="Language Samples\CovarianceSample">CovarianceSample</a>: Demonstrates the co/contravariance feature and the 'In' and 'Out' keywords used when declaring generic interface type parameters</li>
	<li><a href="Language Samples\CustomExceptions">CustomExceptions</a>: Demonstrates custom exceptions and global exception handling</li>
	<li><a href="Language Samples\DateTime">DateTime</a>: Demonstrates how the DateTime and TimeSpan methods work</li>
	<li><a href="Language Samples\FileSystem">FileSystem</a>: Demonstrates the how to use FileSystem methods</li>
	<li><a href="Language Samples\Generics">Generics</a>: Shows how to create various generic collections and how to manipulate them</li>
	<li><a href="Language Samples\ImplicitLCSamples">ImplicitLCSamples</a>: This sample contains two source files showing similar source code using implicit and explicit line continuation</li>
	<li><a href="Language Samples\StatementLambdasSample">StatementLambdasSample</a>: Statement lambdas allow you to declare procedures with multiple statements inside other procedures</li>
	<li><a href="Language Samples\StringFormatting">StringFormatting</a>: Shows how to display numeric, date/time, and enumeration values as strings by using a variety of standard and custom culture-specific format codes</li>
	<li><a href="Language Samples\Strings">Strings</a>: Demonstrates how to use String methods</li>
	<li><a href="Language Samples\TryCatch">TryCatch</a>: Shows how to handle exceptions in applications by using Try...Catch...Finally</li>
	<li><a href="Language Samples\VBLanguage">VBLanguage</a>: Highlights several Visual Basic language features, including generics, operator overloading, and the Using keyword</li>
	<li><a href="Language Samples\VBOOP">VBOOP</a>: Demonstrates the options available with object-oriented programming</li>
	<li><a href="Language Samples\XMLComments">XMLComments</a>: Demonstrates the XML comment feature of Visual Basic</li>
</ul>

<h2><a name="linq">LINQ Samples</a></h2>

<p>The LINQ samples are stored in the <a href="Language Samples\LINQ Samples\">Language Samples\LINQ Samples\</a> directory</p>
<ul>
	<li><a href="Language Samples\LINQ Samples\DynamicQuery">DynamicQuery</a>: Code to create LINQ queries at run time</li>
	<li><a href="Language Samples\LINQ Samples\ExpressionTreeVisualizer">ExpressionTreeVisualizer</a>: View an expression tree</li>
	<li><a href="Language Samples\LINQ Samples\LinqToNorthwind">LinqToNorthwind</a>: A basic example of how to use LINQ To SQL to query a database</li>
	<li><a href="Language Samples\LINQ Samples\LinqToXMLDatabinding">LinqToXMLDatabinding</a>: Bind LINQ to XML code to WPF controls</li>
	<li><a href="Language Samples\LINQ Samples\LinqToXMLIntro">LinqToXMLIntro</a>: Get started using LINQ to XML</li>
	<li><a href="Language Samples\LINQ Samples\ObjectDumper">ObjectDumper</a>: A utility for writing the output from a LINQ query to the screen in text mode</li>
	<li><a href="Language Samples\LINQ Samples\Reflector">Reflector</a>: Use LINQ to right queries against the objects in your code using the Reflection APIs</li>
	<li><a href="Language Samples\LINQ Samples\Rss Aggregator">Rss Aggregator</a>: This sample acts as a tiny web server that aggregates several RSS feeds</li>
	<li><a href="Language Samples\LINQ Samples\SampleQueries">SampleQueries</a>: This is the most important sample and contains about 500 examples of how to use each of the query operators in LINQ to Objects, LINQ to SQL, LINQ to XML and LINQ to DataSet</li>
	<li><a href="Language Samples\LINQ Samples\SimpleLambdas">SimpleLambdas</a>: Several examples of how to write and use lambda expressions</li>
	<li><a href="Language Samples\LINQ Samples\WinFormsDataBinding">WinFormsDataBinding</a>: Learn how to display LINQ queries with grids in a Windows form. It includes a one to many query example</li>
	<li><a href="Language Samples\LINQ Samples\XQuery">XQuery</a>: Another simple LINQ to XML sample query. This sample shows the minimal code necessary to write a LINQ to XML query</li>
</ul>

<h2><a name="security">Security Samples</a></h2>

<p>There is one security example stored in the <a href="Security Samples">Security Samples</a> directory.</p>
<ul>
<li><a href="Security Samples\Security">Security</a>: This sample demonstrates how to modify security permissions through permission classes and permission attributes</li>
</ul>

<h2><a name="server">Server Components Samples</a></h2>

<p>You can find server related examples in <a href="Server Components Samples">Server Components Samples</a> directory</p>
<ul>
<li><a href="Server Components Samples\COMPort">COMPort</a>: Demonstrates how to control a communications (COM) port</li>
<li><a href="Server Components Samples\EventLog">EventLog</a>: Demonstrates how to create and delete event logs and how to read from and write to system event logs and custom event logs by using the EventLog component and the My.Application.Log object</li>
<li><a href="Server Components Samples\MessageQueue\">MessageQueue</a>: Shows how to send and receive message-queue messages from Windows Forms applications
<ul>
<li><a href="Server Components Samples\MessageQueue\MSMQClient">MSMQClient</a></li>
<li><a href="Server Components Samples\MessageQueue\MSMQListener">MSMQListener</a></li>
</ul></li>
<li><a href="Server Components Samples\PerfCounters">PerfCounters</a>: Shows how to read from and write to performance counters to track the performance of the operating system and .NET Framework applications</li>
<li><a href="Server Components Samples\ProcessClass">ProcessClass</a>: The Process class is used to perform a variety of tasks such as commandline processing and listing information about currently running processes</li>
<li><a href="Server Components Samples\ProcessViewer">ProcessViewer</a>: The processes on the current computer are displayed in a ListView control by calling the GetProcesses method</li>
<li><a href="Server Components Samples\ServiceManager">ServiceManager</a>: Shows how to control Windows Services by using the System.ServiceProcess namespace</li>
<li><a href="Server Components Samples\WMI">WMI</a>: Demonstrates how to use objects in the System.Management namespace to access Windows Management Instrumentation (WMI) and to query system information such as operating system name, version, manufacturer, and computer name</li>
</ul>

<h2><a name="tablet">TabletPC Samples</a></h2>

<p>The Tablet Personal Computer examples are found in the <a href="TabletPC Samples">TabletPC Samples</a> directory</p>

<ul>
<li><a href="TabletPC Samples\BackOfPenErase">BackOfPenErase</a>: Demonstrates how to respond to the eraser on the back of a digitizer stylus</li>
<li><a href="TabletPC Samples\ContextEnabledForm">ContextEnabledForm</a>: Demonstrates the context-sensitive capabilities of Microsoft Windows XP Tablet PC Edition 2005</li>
<li><a href="TabletPC Samples\DrawingAttributes">DrawingAttributes</a>: Demonstrates common ways of manipulating the attributes that control the visual style of drawn ink, including size, shape, color, and position</li>
<li><a href="TabletPC Samples\EnablingGestures">EnablingGestures</a>: Demonstrates the system-recognition of gestures in Windows XP Tablet PC Edition 2005</li>
<li><a href="TabletPC Samples\InkEnabledTextBox">InkEnabledTextBox</a>: Demonstrates text recognition options that are available on the Tablet PC</li>
<li><a href="TabletPC Samples\PowerAware">PowerAware</a>: Demonstrates some of the classes that you can use to manage the power status of a computer</li>
<li><a href="TabletPC Samples\SimpleTextRecognition">SimpleTextRecognition</a>: Demonstrates the built-in recognizers that you can use to set up text recognition</li>
<li><a href="TabletPC Samples\SpeechRecognition">SpeechRecognition</a>: Demonstrates the capabilities of the Speech API</li>
</ul>

<h2><a name="wcf">WCF Samples</a></h2>

<p>The Windows Communication Foundation samples are ound in the <a href="WCF Samples">WCF Samples</a> directory.</p>
<ul>
<li><a href="WCF Samples\Chat">Chat</a>: Demonstrates how to implement a multiparty chat application by using PeerChannel. Messages sent by any instance of a chat application are received by all other instances</li>
<li><a href="WCF Samples\Predictor\">Predictor</a>: Demonstrates the difference between Active Server Methods (ASMX) and Windows Communication Foundation (WCF) technologies</li>
<li><a href="WCF Samples\WindowsForms">WindowsForms</a>: Demonstrates a service that implements a contract that defines a request and reply communication pattern</li>
</ul>


<h2><a name="winforms">Winforms Samples</a></h2>

<p>The Windows Forms samples are found in the <a href="Winforms Samples">Winforms Samples</a> directory.</p>

<ul>
<li><a href="Winforms Samples\Clipboard">Clipboard</a>: Demonstrates how to copy and retrieve Clipboard items in multiple formats</li>
<li><a href="Winforms Samples\CommonDialogs">CommonDialogs</a>: Demonstrates how to use the OpenFileDialog, SaveFileDialog, ColorDialog, and FontDialog components to work with files, colors, and fonts</li>
<li><a href="Winforms Samples\DragDrop">DragDrop</a>: Demonstrates drag-and-drop functionality with text, images, and tree-view nodes</li>
<li><a href="Winforms Samples\DrawUserControl">DrawUserControl</a>: Demonstrates how to create custom-drawn user controls, use them on a form, enable them to respond to events, and define properties for use in Design view</li>
<li><a href="Winforms Samples\DynamicControls">DynamicControls</a>: Demonstrates how to add controls to a form in a Windows Forms application at run time</li>
<li><a href="Winforms Samples\ExplorerApp">ExplorerApp</a>: Contains two forms that have split-pane windows, similar to Windows Explorer</li>
<li><a href="Winforms Samples\GDIAnimation">GDIAnimation</a>: Demonstrates how to implement animation, such as moving text, a bouncing ball, and an animated image, by using the System.Drawing namespace objects</li>
<li><a href="Winforms Samples\GDIBrushes">GDIBrushes</a>: Demonstrates how to customize a brush by using the Brush object</li>
<li><a href="Winforms Samples\GDIImages">GDIImages</a>: Demonstrates the manipulation of images. Manipulations include zooming, resizing, rotating, and clipping</li>
<li><a href="Winforms Samples\GDIPens">GDIPens</a>: Demonstrates how to customize a pen by using the Pen object</li>
<li><a href="Winforms Samples\GDIText">GDIText</a>: Shows the effects of text options. Text options include shadow, embossing, block text, shearing, and reflection</li>
<li><a href="Winforms Samples\HelpSample">HelpSample</a>: Shows how to add Help to a Windows-based application by using the ToolTip, HelpProvider, and ErrorProvider controls</li>
<li><a href="Winforms Samples\InheritForm">InheritForm</a>: Shows how you can use inheritance with Windows Forms</li>
<li><a href="Winforms Samples\ListBoxComboBox">ListBoxComboBox</a>: Demonstrates several basic ListBox and ComboBox tasks, such as adding items, binding to a database table, and accessing a selected item</li>
<li><a href="Winforms Samples\Menus">Menus</a>: Demonstrates how to use MenuStrip controls in Windows Forms applications to create menus at runtime and handle menu events</li>
<li><a href="Winforms Samples\NotifyIcon">NotifyIcon</a>: Demonstrates how to create a program that displays an icon in the notification area by using the NotifyIcon control and its associated ContextMenu</li>
<li><a href="Winforms Samples\Printing">Printing</a>: Demonstrates how to use the My.Printers object to print text and configure a printer</li>
<li><a href="Winforms Samples\RegExpressions">RegExpressions</a>: Demonstrates how to validate user input by using the Regex class, which represents regular expressions</li>
<li><a href="Winforms Samples\simplebrowser">Simple Browser</a>: Demonstrates how to create a simple Web browser by using the WebBrowser control</li>
<li><a href="Winforms Samples\StatusStrip">StatusStrip</a>: Demonstrates how to display various types of data visually in the StatusStrip control</li>
<li><a href="Winforms Samples\TopLevelForms">TopLevelForms</a>: Demonstrates how to implement an application that supports multiple windows that appear separately in the taskbar</li>
<li><a href="Winforms Samples\ValidateText">ValidateText</a>: Provides a comparison of two ways of validating text: by using regular expressions in a custom TextBox control and by using the MaskedTextBox component</li>
</ul>

</body>
</html>
